import http from "wechat-http";

http.baseURL = "https://api-hmugo-web.itheima.net/api/public/v1";

// 请求拦截器
http.intercept.request = (params) => {
  return params;
};

// 响应拦截器
http.intercept.response = (res) => {
  return res.data;
};
wx.http = http;

export default http;
